home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / sys / time.h < prev    next >
C/C++ Source or Header  |  1991-02-26  |  2KB  |  58 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /* time.h - standard C time functions and definitions */
  18.  
  19. /*
  20.  * 26.2.91 sjw; ensure only included once, use prototypes for K&R2,
  21.  *              include <stddef.h> for clock_t, time_t
  22.  */
  23.  
  24. #ifndef __TIME_H__
  25. #define __TIME_H__
  26.  
  27. #include <stddef.h>
  28.  
  29. #define CLK_TCK 50  
  30.  
  31. struct tm {
  32.     int tm_sec;   /* seconds; range 0..59 */
  33.     int tm_min;   /* minutes; range 0..59 */
  34.     int tm_hour;  /* hours since midnight; range 0..23 */
  35.     int tm_mday;  /* day of month; range 1..31 */
  36.     int tm_mon;   /* month; range 0..11 */
  37.     int tm_year;  /* year; with 0==1900 */
  38.     int tm_wday;  /* day of week; range Sun=0..6 */
  39.     int tm_yday;  /* day of year; range 0..365 */
  40.     int tm_isdst; /* nonzero implies daylight savings */
  41. };
  42.  
  43. clock_t    clock(void);
  44. time_t     time(time_t *tp);
  45. char      *asctime(const struct tm *tp);
  46. char      *ctime(const time_t *tp);
  47. struct tm *gmtime(const time_t *tp);
  48. struct tm *localtime(const time_t *tp);
  49. time_t     mktime(struct tm *tp);
  50. double     difftime(time_t time2, time_t time1);
  51.  
  52. /* strftime() omitted */
  53.  
  54. extern double     jday();
  55. extern int        dayofw();
  56.  
  57. #endif /* __TIME__H__ */
  58.